import requests

res = requests.get('https://www.dianping.com/shanghai/ch10/p2',headers= {
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36',
})

print(res.text)